<?php
defined('IN_ADMIN') or exit('No permission resources.');
include $this->admin_tpl('header');?>
<body> 
<div class="main_head">
		<span class="main_head_title">角色管理</span>	
		<a href="?m=admin&c=role&a=add"><span class="main_head_btn">新&nbsp;&nbsp;增</span></a>	
</div>
<div class="main_wraper">
<table border="0" cellpadding="0" cellspacing="0" class="main_table">
	<thead>
		<tr class="main_table_header">
			<th width="4%">序号</th>
			<th width="5%">角色名称</th>
			<th width="10%">角色描述</th>
			<th width="40%" colspan=5>操作</th>						
		</tr>
	</thead>
	<tbody id = "main_tbody" >
		<?php 
			if(is_array($infos)){
				for($i = 0; $i < count($infos); $i++){
		?>
		<tr>
			<td><?php echo $i+1;?></td>
			<td><?php echo $infos[$i]['rolename']?></td>
			<td><?php echo $infos[$i]['description']?></td>
			<?php if($infos[$i]['roleid'] !=1){?>
			<td><a href="?m=admin&c=role&a=role_priv&roleid=<?php echo $infos[$i]['roleid']?>&rolename=<?php echo $infos[$i]['rolename']?>">权限设置</a></td>
			<td><a href="?m=admin&c=role&a=edit&roleid=<?php echo $infos[$i]['roleid']?>">修改</a></td>
			<td><a href="javascript:confirmurl('?m=admin&c=role&a=delete&roleid=<?php echo $infos[$i]['roleid']?>','确定删除？')">删除</a></td>
			<?php } else{?>
			<td><font color="#cccccc">权限设置</font></td>
			<td><font color="#cccccc">修改</font></td>
			<td><font color="#cccccc">删除</font></td>
			<?php }?>			
			<td><a href="?m=admin&c=role&a=member_manage&roleid=<?php echo $infos[$i]['roleid']?>">成员管理</a></td>
		</tr>
		<?php 
			}
				}?>
	</tbody>
</table>
</div>
<div class="main_foot_wraper">

</div>
</body>
</html>
